package com.design.principle.dependencyinversion.contoller;

import com.design.principle.dependencyinversion.ICourse;

/**
 * @auther LiZiBa
 * @date 2020/8/2 10:22
 * @description:
 **/
public class LiZiBa {

    private ICourse iCourse;

    public LiZiBa() {

    }

    public LiZiBa(ICourse iCourse) {
        this.iCourse = iCourse;
    }

    public void setiCourse(ICourse iCourse) {
        this.iCourse = iCourse;
    }

    public ICourse getiCourse() {
        return iCourse;
    }

    public void study(){

        iCourse.study();
    }
}
